##PBAR_Zspec_SimulateSpectra.py
# script for making all the simulated spectra datasets

import csv
import numpy as np
import numpy.matlib
import datetime
import time
import PBAR_Zspec


basepath = 'C:\Users\jkwong\Documents\Work\PBAR\data'
outputDir = 'C:\Users\jkwong\Documents\Work\PBAR\dataMC'

## parameters
# list of acquisition times to cycle through
acquisitionTimeList = [1, 2, 5, 10]

# list of bin edges
binEdgesList = [np.arange(256), \
                (np.arange(33)*3 + 7)\
                ]
numTrials = 100
binA = np.arange(256)

# Create list of datasets
(filenameList, fullfilenameList) = \
               PBAR_Zspec.GenerateDefaultDatasetFilenameList(basepath)
PBAR_Zspec.SimulateAll(\
    basepath, filenameList, binEdgesList, acquisitionTimeList, numTrials, outputDir)

